<script setup>
const props = defineProps({
  options: {
    type: Object,
    default: () => {
      return {}
    }
  }
})

const tAnimationConfig = computed(() => {
  return {
    Basis: 'x',
    Duration: 2000,
    Length: props.options.xAxis ? props.options.xAxis.data.length : 99
  }
})
</script>

<template>
  <div style="width: 100%; height: 100%">
    <dv-border-box7 class="my-box7" :color="['#0749a3', '#4195d2']">
      <div class="dom-box">
        <div class="dom-title">销售数量/金额</div>
        <div class="dom-content">
          <div class="chart-content">
            <ps-chart2 :option="props.options" tooltipAnimation :tAnimationConfig="tAnimationConfig" />
          </div>
        </div>
      </div>
    </dv-border-box7>
  </div>
</template>

<style scoped lang="scss"></style>
